﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;

namespace JXC.Core.Models
{
    /// <summary>
    /// 采购入库单明细文件
    /// </summary>
   public class CaigouStorageDetails
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public string Id { get; set; }//采购入库单明细单号

        [ForeignKey("CaigouEnterId")]
        public Guid CaigouEnterId { get; set; }//采购入库单单号
        [ForeignKey("CommodityInformationSheetId")]
        public Guid CommodityInformationSheetId { get; set; }//商品编码
        public string Quantity { get; set; }//数量
        public string UintPrice { get; set; }//单价

        public string? Others { get; set; }//备注

        public CaigouEnter CaigouEnter { get; set; }
        public CommodityInformationSheet CommodityInformationSheet { get; set; }
    }
}
